package cn.com.nes.common.util;

import java.util.Vector;

/**
 * <p>
 * Title:
 * </p>
 * <p>
 * Description:
 * </p>
 * <p>
 * Copyright: Copyright (c) 2003
 * </p>
 * <p>
 * Company:
 * </p>
 * 
 * @author unascribed
 * @version 1.0
 */

public class ObjectList {
	
	private Vector vector = new Vector();
	private int pagesize, page, pagecount, rows;

	public void addObject(Object item) {
		vector.add(item);
	}

	/**
	 * @return
	 */
	public Vector getVector() {
		return vector;
	}

	/**
	 * @param vector
	 */
	public void setVector(Vector vector) {
		this.vector = vector;
	}

	/**
	 * @return
	 */
	public int getPage() {
		if (pagecount == 0)
			page = 0;
		return page;
	}

	/**
	 * @return
	 */
	public int getPagecount() {
		return pagecount;
	}

	/**
	 * @return
	 */
	public int getPagesize() {
		return pagesize;
	}

	/**
	 * @return
	 */
	public int getRows() {
		return rows;
	}

	/**
	 * @param i
	 */
	public void setPage(int i) {
		page = i;
	}

	/**
	 * @param i
	 */
	public void setPagecount(int i) {
		pagecount = i;
	}

	/**
	 * @param i
	 */
	public void setPagesize(int i) {
		pagesize = i;
	}

	/**
	 * @param i
	 */
	public void setRows(int i) {
		rows = i;
	}

}